package com.lnking.lnkingplace.service;


import com.lnking.lnkingplace.model.dto.activity.ActivityDetailDto;
import com.lnking.lnkingplace.model.dto.activity.ActivityDto;
import com.lnking.lnkingplace.model.entity.Activity;
import com.lnking.lnkingplace.model.request.activity.ActivityAddRequest;
import com.lnking.lnkingplace.model.request.activity.ActivityUpdateRequest;
import com.lnking.starter.mybatis.service.ICustomService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author sn
 * @since 2022-08-19
 */
public interface IActivityService extends ICustomService<Activity> {

    /**
     * 创建
     * @param params
     */
    void add(ActivityAddRequest params) throws Exception;

    /**
     * 更新
     * @param params
     */
    void update(ActivityUpdateRequest params);


    /**
     * 通过活动ID获取活动详情
     * @param id
     * @return
     */
    ActivityDetailDto getDetailById(String id);
}
